<style>
li {
border-bottom:1px solid #EEEEEE;
clear:both;
overflow:hidden;
padding:12px 0;
width:100%;
font:12px Verdana,Arial,Tahoma;
}      

a.preview  {
display:inline;
float:left;
margin-bottom:3px;
margin-left:10px;
margin-right:7px;
width:84px;
}
a {
color:#3366CC;
text-decoration:none;
}
span.info  {
color:#555555;
display:block;
line-height:23px;
padding-left:12px;
}
li a.preview img {
border:1px solid #EEEEEE;
display:block;
padding:1px;
width:80px;
}
</style>
      
      <ul class="e2" style="margin-left:-40px;">
        <% for s in @surveys %>
        <li>
      		<a class="preview" href="http://iyaoi.cn/examiner/test/<%=s.id%>">
        		<%= image_tag("uploads/fullsize/#{s.images[0].filename if s.images.size > 0}",
                               :height => '90', :width => '80')%>
      		</a>
					[<b><a href="#">心理测试</a></b>]
					<a class="title" href="http://iyaoi.cn/examiner/test/<%=s.id%>"><%=s.name%></a>
					<span class="info">
					</span>
					<p class="intro">
						<%= s.description %>
					</p>
				</li>
				<% end %>
				
			</ul>
			
			<%=will_paginate(@surveys ,:prev_label=>'上一页',:next_label=>'下一页',:separator=>" | ") %>
			
			
